var express = require('express');
var router = express.Router();


const mysql2 = require("mysql2");
const UserController = require('../controllers/UserController');
/* GET users listing. */

router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.post("/user",UserController.addUser)

router.delete("/user", UserController.deleteUser)

router.put("/user/:myid", UserController.updataUser)

router.get("/user",UserController.selectUser)

router.get("/logout",UserController.logout)

module.exports = router;
